/*eslint-disable */
import dkmobileCall from './dkmobileCall';
export function dkShare (params, successCb) {
  dkmobileCall({
      cmd: 610,
      data: params,
      callback: res=>{
          let data = handleResult(res);
          if (successCb && data.result == 1) {
              successCb()
          }
      }
  })
}
function handleResult(res){
  if (typeof res === 'string') {
      res = JSON.parse(res);
  }
  let data;
  if (typeof res.jsonStr === 'string') {
      data = JSON.parse(res.jsonStr);
  } else {
      data = res.jsonStr;
  }
  return data
}
